#include "proc.h"
int main()
{
    // 创建管道
    umask(0);
    int ret = mkfifo(PIPE_NAME, 0666);
    //assert(ret != -1);
    // 打开管道文件
    int id = open(PIPE_NAME, O_WRONLY);
    assert(id != -1);
    // 写入管道
    const char *str = "i am father";
    ssize_t num = write(id, str, strlen(str));
    assert(num != -1);
    return 0;
}